package com.sdry.entity.permission;

import com.sdry.entity.UmpsDepartment;
import com.sdry.utils.PageBean;
/**
 * 
 * @ClassName:UpmsStaff
 * @Description:员工
 * @Author tdd
 * @Date 2018年7月31日下午2:42:43
 * @version 1.0
 */
public class UpmsStaff extends PageBean{
	/**id*/
    private Long staffId;
    /**工号*/
    private String scode;
    /**姓名*/
    private String sname;
    /**性别*/
    private String sex;
    /**出生日期*/
    private String sbir;
    /**密码*/
    private String pass;
    /**部门id*/
    private Long did;
    /**职位id*/
    private Long pid;
    /**地区id*/
    private Long rid;
    /**入社时间*/
    private String isndate;
    /**联系方式*/
    private String sway;
    /**学历*/
    private String seducation;
    /**学校*/
    private String sschool;
    /**专业*/
    private String smajor;
    /**qq*/
    private String sqq;
    /**邮箱*/
    private String smail;
    /**家庭地址*/
    private String saddress;
    /**紧急联系人*/
    private String sman;
    /**紧急联系电话*/
    private String stele;
    /**备注*/
    private String sremark;
    /**录入人*/
    private String sentry;
    /**录入时间*/
    private String sentrytime;
    /**是否是用户   1是  反正否*/
    private String sreserve1;
    /**预留*/
    private String sreserve2;
    /**预留*/
    private String sreserve3;
    /**预留*/
    private String sreserve4;
    /**预留*/
    private String sreserve5;

    private UmpsDepartment umpsDepartment;

    private static final long serialVersionUID = 1L;

    public Long getStaffId() {
        return staffId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSbir() {
        return sbir;
    }

    public void setSbir(String sbir) {
        this.sbir = sbir;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public Long getDid() {
        return did;
    }

    public void setDid(Long did) {
        this.did = did;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public String getIsndate() {
        return isndate;
    }

    public void setIsndate(String isndate) {
        this.isndate = isndate;
    }

    public String getSway() {
        return sway;
    }

    public void setSway(String sway) {
        this.sway = sway;
    }

    public String getSeducation() {
        return seducation;
    }

    public void setSeducation(String seducation) {
        this.seducation = seducation;
    }

    public String getSschool() {
        return sschool;
    }

    public void setSschool(String sschool) {
        this.sschool = sschool;
    }

    public String getSmajor() {
        return smajor;
    }

    public void setSmajor(String smajor) {
        this.smajor = smajor;
    }

    public String getSqq() {
        return sqq;
    }

    public void setSqq(String sqq) {
        this.sqq = sqq;
    }

    public String getSmail() {
        return smail;
    }

    public void setSmail(String smail) {
        this.smail = smail;
    }

    public String getSaddress() {
        return saddress;
    }

    public void setSaddress(String saddress) {
        this.saddress = saddress;
    }

    public String getSman() {
        return sman;
    }

    public void setSman(String sman) {
        this.sman = sman;
    }

    public String getStele() {
        return stele;
    }

    public void setStele(String stele) {
        this.stele = stele;
    }

    public String getSremark() {
        return sremark;
    }

    public void setSremark(String sremark) {
        this.sremark = sremark;
    }

    public String getSentry() {
        return sentry;
    }

    public void setSentry(String sentry) {
        this.sentry = sentry;
    }

    public String getSentrytime() {
        return sentrytime;
    }

    public void setSentrytime(String sentrytime) {
        this.sentrytime = sentrytime;
    }

    public String getSreserve1() {
        return sreserve1;
    }

    public void setSreserve1(String sreserve1) {
        this.sreserve1 = sreserve1;
    }

    public String getSreserve2() {
        return sreserve2;
    }

    public void setSreserve2(String sreserve2) {
        this.sreserve2 = sreserve2;
    }

    public String getSreserve3() {
        return sreserve3;
    }

    public void setSreserve3(String sreserve3) {
        this.sreserve3 = sreserve3;
    }

    public String getSreserve4() {
        return sreserve4;
    }

    public void setSreserve4(String sreserve4) {
        this.sreserve4 = sreserve4;
    }

    public String getSreserve5() {
        return sreserve5;
    }

    public void setSreserve5(String sreserve5) {
        this.sreserve5 = sreserve5;
    }

    public UmpsDepartment getUmpsDepartment() {
        return umpsDepartment;
    }

    public void setUmpsDepartment(UmpsDepartment umpsDepartment) {
        this.umpsDepartment = umpsDepartment;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", staffId=").append(staffId);
        sb.append(", scode=").append(scode);
        sb.append(", sname=").append(sname);
        sb.append(", sex=").append(sex);
        sb.append(", sbir=").append(sbir);
        sb.append(", pass=").append(pass);
        sb.append(", did=").append(did);
        sb.append(", pid=").append(pid);
        sb.append(", rid=").append(rid);
        sb.append(", isndate=").append(isndate);
        sb.append(", sway=").append(sway);
        sb.append(", seducation=").append(seducation);
        sb.append(", sschool=").append(sschool);
        sb.append(", smajor=").append(smajor);
        sb.append(", sqq=").append(sqq);
        sb.append(", smail=").append(smail);
        sb.append(", saddress=").append(saddress);
        sb.append(", sman=").append(sman);
        sb.append(", stele=").append(stele);
        sb.append(", sremark=").append(sremark);
        sb.append(", sentry=").append(sentry);
        sb.append(", sentrytime=").append(sentrytime);
        sb.append(", sreserve1=").append(sreserve1);
        sb.append(", sreserve2=").append(sreserve2);
        sb.append(", sreserve3=").append(sreserve3);
        sb.append(", sreserve4=").append(sreserve4);
        sb.append(", sreserve5=").append(sreserve5);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsStaff other = (UpmsStaff) that;
        return (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getScode() == null ? other.getScode() == null : this.getScode().equals(other.getScode()))
            && (this.getSname() == null ? other.getSname() == null : this.getSname().equals(other.getSname()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getSbir() == null ? other.getSbir() == null : this.getSbir().equals(other.getSbir()))
            && (this.getPass() == null ? other.getPass() == null : this.getPass().equals(other.getPass()))
            && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getIsndate() == null ? other.getIsndate() == null : this.getIsndate().equals(other.getIsndate()))
            && (this.getSway() == null ? other.getSway() == null : this.getSway().equals(other.getSway()))
            && (this.getSeducation() == null ? other.getSeducation() == null : this.getSeducation().equals(other.getSeducation()))
            && (this.getSschool() == null ? other.getSschool() == null : this.getSschool().equals(other.getSschool()))
            && (this.getSmajor() == null ? other.getSmajor() == null : this.getSmajor().equals(other.getSmajor()))
            && (this.getSqq() == null ? other.getSqq() == null : this.getSqq().equals(other.getSqq()))
            && (this.getSmail() == null ? other.getSmail() == null : this.getSmail().equals(other.getSmail()))
            && (this.getSaddress() == null ? other.getSaddress() == null : this.getSaddress().equals(other.getSaddress()))
            && (this.getSman() == null ? other.getSman() == null : this.getSman().equals(other.getSman()))
            && (this.getStele() == null ? other.getStele() == null : this.getStele().equals(other.getStele()))
            && (this.getSremark() == null ? other.getSremark() == null : this.getSremark().equals(other.getSremark()))
            && (this.getSentry() == null ? other.getSentry() == null : this.getSentry().equals(other.getSentry()))
            && (this.getSentrytime() == null ? other.getSentrytime() == null : this.getSentrytime().equals(other.getSentrytime()))
            && (this.getSreserve1() == null ? other.getSreserve1() == null : this.getSreserve1().equals(other.getSreserve1()))
            && (this.getSreserve2() == null ? other.getSreserve2() == null : this.getSreserve2().equals(other.getSreserve2()))
            && (this.getSreserve3() == null ? other.getSreserve3() == null : this.getSreserve3().equals(other.getSreserve3()))
            && (this.getSreserve4() == null ? other.getSreserve4() == null : this.getSreserve4().equals(other.getSreserve4()))
            && (this.getSreserve5() == null ? other.getSreserve5() == null : this.getSreserve5().equals(other.getSreserve5()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getScode() == null) ? 0 : getScode().hashCode());
        result = prime * result + ((getSname() == null) ? 0 : getSname().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getSbir() == null) ? 0 : getSbir().hashCode());
        result = prime * result + ((getPass() == null) ? 0 : getPass().hashCode());
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getIsndate() == null) ? 0 : getIsndate().hashCode());
        result = prime * result + ((getSway() == null) ? 0 : getSway().hashCode());
        result = prime * result + ((getSeducation() == null) ? 0 : getSeducation().hashCode());
        result = prime * result + ((getSschool() == null) ? 0 : getSschool().hashCode());
        result = prime * result + ((getSmajor() == null) ? 0 : getSmajor().hashCode());
        result = prime * result + ((getSqq() == null) ? 0 : getSqq().hashCode());
        result = prime * result + ((getSmail() == null) ? 0 : getSmail().hashCode());
        result = prime * result + ((getSaddress() == null) ? 0 : getSaddress().hashCode());
        result = prime * result + ((getSman() == null) ? 0 : getSman().hashCode());
        result = prime * result + ((getStele() == null) ? 0 : getStele().hashCode());
        result = prime * result + ((getSremark() == null) ? 0 : getSremark().hashCode());
        result = prime * result + ((getSentry() == null) ? 0 : getSentry().hashCode());
        result = prime * result + ((getSentrytime() == null) ? 0 : getSentrytime().hashCode());
        result = prime * result + ((getSreserve1() == null) ? 0 : getSreserve1().hashCode());
        result = prime * result + ((getSreserve2() == null) ? 0 : getSreserve2().hashCode());
        result = prime * result + ((getSreserve3() == null) ? 0 : getSreserve3().hashCode());
        result = prime * result + ((getSreserve4() == null) ? 0 : getSreserve4().hashCode());
        result = prime * result + ((getSreserve5() == null) ? 0 : getSreserve5().hashCode());
        return result;
    }
}